home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 March / PCWMAR06.iso / Software / Trial / Ability Office 2004 / spread.cab / abSpread.bi < prev    next >
Encoding:
Text File  |  2004-05-13  |  23.4 KB  |  817 lines

  1. // ABSpread.idl : IDL source for ABSpread.exe
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (ABSpread.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. //forward declarations        
  8. interface IApplication;
  9. interface IWorkbook;
  10. interface Workbooks;
  11. interface Worksheets;
  12. interface Worksheet;
  13. interface Range;
  14. interface Font;
  15. interface NumberFormat;
  16. interface Border;
  17. interface Borders;
  18. interface Chart;
  19. interface Charts;
  20. interface ChartFillStyle;
  21. interface ChartTitle;
  22. interface ChartTitles;
  23. interface ChartLegend;
  24. interface ChartLegends;
  25.  
  26. <begin>
  27.  
  28.  
  29. enum ABWindowState //////
  30. {
  31.     abMaximized = -4137L,    
  32.     abMinimized = -4140L,
  33.     abNormal = -4143L
  34. } ;
  35.  
  36. enum ABDeleteShiftDirection //////
  37. {
  38.     abShiftToLeft = -4159, 
  39.     abShiftUp = -4162
  40. } ;
  41.  
  42. enum  ABInsertShiftDirection //////
  43. {
  44.     abShiftDown = -4121,    
  45.     abShiftToRight = -4161
  46. };
  47.  
  48. enum ABNumberFormatType //////
  49. {
  50.     abNumberFormatGeneral, _
  51.     abNumberFormatNumber,_
  52.     abNumberFormatCurrency,_
  53.     abNumberFormatPercent,_
  54.     abNumberFormatFraction,_
  55.     abNumberFormatScientific,_
  56.     abNumberFormatTime,_
  57.     abNumberFormatDate,_
  58.         abNumberFormatBool _
  59. } ;    
  60.  
  61. enum ABLeadTrailType //////
  62. {
  63.     abLeadTrailNone, _
  64.     abLeadTrailLeading,_
  65.     abLeadTrailTrailing _
  66. } ;
  67.  
  68. enum ABFractionType //////
  69. {
  70.     abFractionAuto, _
  71.     abFraction100th, _
  72.     abFraction10th, _
  73.     abFraction16th, _
  74.     abFraction8th, _
  75.     abFraction4th _
  76. } ;
  77.  
  78. enum  ABDateMonthType //////
  79. {
  80.     abDateMonthShortName, _
  81.     abDateMonthLongName, _
  82.     abDateMonthDigits _
  83. };
  84.  
  85. enum  ABDateYearType //////
  86. {
  87.     abDateYearLong, _
  88.     abDateYearNone, _
  89.     abDateYearShort _
  90. };
  91.  
  92. enum  ABDayMonthOrderType //////
  93. {
  94.     abMonthDayOrder, _
  95.     abDayMonthOrder _
  96. };
  97.  
  98. enum  ABHorizontalAlignment //////
  99. {
  100.     abHAlignLeft, _
  101.     abHAlignCenter, _
  102.     abHAlignRight _
  103. };
  104.  
  105. enum  ABVerticalAlignment //////
  106. {
  107.     abVAlignTop, _
  108.     abVAlignCenter, _
  109.     abVAlignBottom _
  110. };
  111.  
  112.  
  113. enum   ABBorderIndex //////
  114. {
  115.     abBorderBottom = 9,
  116.     abBorderLeft = 7,
  117.     abBorderRight = 10,
  118.     abBorderTop = 8
  119. };
  120.  
  121. enum  ABLineStyle //////
  122. {
  123.     abLineStyleNone, _
  124.     abLineStyleContinuousThin, _
  125.     abLineStyleContinuousMedium, _
  126.     abLineStyleContinuousThick, _
  127.     abLineStyleDot, _
  128.     abLineStyleDashThin, _
  129.     abLineStyleDashThick, _
  130.     abLineStyleDashDot _
  131. };
  132.  
  133. enum ABChartStyle //////
  134.     {
  135.         abChartStyleLine, _
  136.         abChartStyleHBar, _
  137.         abChartStyleVBar, _
  138.         abChartStylePie , _
  139.         abChartStyleHistogram, _
  140.         abChartStyleArea, _
  141.         abChartStyleStock, _
  142.         abChartStyleOscilloscope, _
  143.         abChartStyleIsoBar, _
  144.         abChartStyleIsoArea, _
  145.         abChartStyleStackVBar, _
  146.         abChartStyleStackHBar, _
  147.         abChartStyleIsoPie, _
  148.         abChartStyleStrata, _
  149.         abChartStyleExVBar, _
  150.         abChartStyleExHBar, _
  151.         abChartStyleRibbon, _
  152.         abChartStyleWeb, _
  153.         abChartStyleXYScatterA, _
  154.         abChartStyleXYScatterI, _
  155.         abChartStyleXYScatterG, _
  156.         abChartStyleTimeSpan, _
  157.         abChartStyleAreaWeb, _
  158.         abChartStyleAreaStock, _
  159.         abChartStyleFreeStyle, _
  160.         abChartStylePolar, _
  161.         abChartStyleAreaPolar, _
  162.         abChartStyleCandle, _
  163.         abChartStyleHiLoOpenClose, _
  164.         abChartStyleGantt, _
  165.         abChartStyleLineOnly, _
  166.         abChartStyleXYScatterAEx, _
  167.         abChartStyleXYScatterIEx, _
  168.         abChartStyleXYScatterGEx, _
  169.         abChartStyleStep, _
  170.         abChartStyleStepLo, _
  171.         abChartStyleStrataVBar, _
  172.         abChartStyleStrataHBar, _
  173.         abChartStyleStrataVBarG, _
  174.         abChartStyleStrataHBarG, _
  175.         abChartStyleBubbleR, _
  176.         abChartStyleBubbleA, _
  177.         abChartStyleVectorE, _
  178.         abChartStyleVectorC, _
  179.         abChartStyleVectorG _ 
  180.     } ;
  181.  
  182.     enum ABChartBorder //////
  183.     {
  184.         abChartBoderNoBorder, _
  185.         abChartBorderThinRaised, _
  186.         abChartBorderThinSunken, _
  187.         abChartBorderThin3D, _
  188.         abChartBorderThickRaised, _
  189.         abChartBorderThickSunken, _
  190.         abChartBorderThick3D, _
  191.         abChartBorderLine _
  192.     } ;
  193.  
  194.     enum ABChartShadow //////
  195.     {
  196.         abChartShadowNoShadow, _
  197.         abChartShadowThin, _
  198.         abChartShadowMedium, _
  199.         abChartShadowThick _
  200.     } ;
  201.  
  202.     enum ABChartAxisType //////
  203.     {
  204.         abChartAxisAutomatic, _
  205.         abChartAxisClassic, _
  206.         abChartAxisOscilloscope, _
  207.         abChartAxisPlatformSE, _
  208.         abChartAxisPlatformSW, _
  209.         abChartAxisStageSE, _
  210.         abChartAxisStageSW, _
  211.         abChartAxisHFrame, _
  212.         abChartAxisPie, _
  213.         abChartAxisYX, _
  214.         abChartAxisIsoClassic, _
  215.         abChartAxisClassicRight, _
  216.         abChartAxisIsoClassicR, _
  217.         abChartAxisWeb, _
  218.         abChartAxisXYScatter, _
  219.         abChartAxisIsoClassicYX, _
  220.         abChartAxisPolar, _
  221.         abChartAxisDate, _
  222.         abChartAxisDateR, _
  223.         abChartAxisIsoDate, _
  224.         abChartAxisIsoDateR, _
  225.         abChartAxisIsoDateYX, _
  226.         abChartAxisDateYX, _
  227.         abChartAxisGanttValue, _
  228.         abChartAxisGanttDate, _
  229.         abChartAxisScatterDateX, _
  230.         abChartAxisScatterDateY _
  231.     } ;
  232.  
  233.     enum ABFillStyleType //////
  234.     {
  235.         abFillStyleNone, _
  236.         abFillStyleSolid, _
  237.         abFillStyleVertical, _
  238.         abFillStyleHorizontal, _
  239.         abFillStyleAngle, _
  240.         abFillStyleImage _
  241.     } ;
  242.  
  243.     enum ABChartTitleIndex //////
  244.     {
  245.         abChartTitleTop, _
  246.         abChartTitleLeft, _
  247.         abChartTitleBottom, _
  248.         abChartTitleRight _
  249.     } ;        
  250.  
  251.     enum ABChartLegendIndex //////
  252.     {
  253.         abChartLegendTop, _
  254.         abChartLegendLeft, _
  255.         abChartLegendBottom, _
  256.         abChartLegendRight _
  257.     } ;        
  258.  
  259. class IApplication //////
  260. {
  261. [properties:
  262.     [propget, id(1), helpstring("property Visible")] 
  263.     BOOL  Visible();
  264.     [propput, id(1), helpstring("property Visible")] 
  265.     HRESULT Visible(  BOOL newVal);
  266.     [propget, id(2), helpstring("property UserControl")] 
  267.     BOOL UserControl( );
  268.     [propput, id(2), helpstring("property UserControl")] 
  269.     HRESULT UserControl(  BOOL newVal);
  270.     [propget, id(3), helpstring("property WindowState")] 
  271.     ABWindowState WindowState( );
  272.     [propput, id(3), helpstring("property WindowState")] 
  273.     HRESULT WindowState(  ABWindowState newVal);
  274.     [propget, id(4), helpstring("property ActiveWorkbook")] 
  275.     IWorkbook ActiveWorkbook( );
  276.     [propget, id(5), helpstring("property Workbooks")] 
  277.     Workbooks Workbooks(  );
  278.     [propget, id(6), helpstring("property ActiveCell")] 
  279.     Range ActiveCell(  );
  280.     [propget, id(7), helpstring("property Selection")] 
  281.     Range Selection(  );
  282.     [propget, id(8), helpstring("property Range")] 
  283.     Range Range(VARIANT range);
  284.     [propget, id(9), helpstring("property Caption")] 
  285.     BSTR  Caption( );
  286.     [propget, id(10), helpstring("property ActiveSheet")] 
  287.     Worksheet ActiveSheet(  );
  288.     [propget, id(11), helpstring("property Cells")] 
  289.     Range Cells(  );
  290. ]
  291. [methods:
  292.     [id(12), helpstring("method Quit")] 
  293.     HRESULT Quit();
  294.     [id(13), helpstring("method Calculate")] 
  295.     HRESULT Calculate();
  296. ]
  297. };
  298.  
  299.  
  300. class IWorkbook //////
  301. {
  302. [methods:
  303.     [id(1), helpstring("method Close")] 
  304.     HRESULT Close( VARIANT SaveChanges,  VARIANT FileName);
  305.     [id(3), helpstring("method Save")] 
  306.     HRESULT Save();
  307.     [id(7), helpstring("method Calculate")] 
  308.     HRESULT Calculate();
  309.     [id(8), helpstring("method SaveAs")] 
  310.     HRESULT SaveAs(BSTR FileName);
  311.     [id(9), helpstring("method Activate")] 
  312.     HRESULT Activate();
  313.     [id(13), helpstring("method Protect")] 
  314.     HRESULT Protect(BSTR Password);
  315.     [id(14), helpstring("method Unprotect")] 
  316.     HRESULT Unprotect(BSTR Password);
  317. ]
  318. [properties:
  319.     [propget, id(2), helpstring("property Application")] 
  320.     IApplication Application(  );
  321.     [propget, id(4), helpstring("property Saved")] 
  322.     BOOL  Saved( );
  323.     [propput, id(4), helpstring("property Saved")] 
  324.     HRESULT Saved(  BOOL newVal);
  325.     [propget, id(5), helpstring("property Worksheets")] 
  326.     Worksheets Worksheets(  );
  327.     [propget, id(6), helpstring("property ActiveSheet")] 
  328.     Worksheet ActiveSheet(  );
  329.     [propget, id(10), helpstring("property Name")] 
  330.     BSTR  Name( );
  331.     [propget, id(11), helpstring("property Path")] 
  332.     BSTR  Path( );
  333.     [propget, id(12), helpstring("property Protected")] 
  334.     BOOL  Protected( );
  335.     [propget, id(15), helpstring("property Forms")] 
  336.     LPDISPATCH  Forms( );
  337. ]
  338. };
  339.  
  340.  
  341. class Workbooks //////
  342. {
  343. [properties:
  344.     [propget, id(1), helpstring("property Application")] 
  345.     IApplication Application( );
  346.     [propget, id(2), helpstring("property Count")] 
  347.     long  Count( );
  348.     [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum"), restricted] 
  349.     IUnknown _NewEnum( );
  350.     [propget, id(DISPID_VALUE), helpstring("property Item")] 
  351.     IWorkbook Item( VARIANT Index );
  352. ]
  353. [methods:
  354.     [id(3), helpstring("method Add")] 
  355.     IWorkbook Add();
  356.     [id(4), helpstring("method Close")] 
  357.     HRESULT Close();
  358.     [id(5), helpstring("method Open")] 
  359.     IWorkbook Open( BSTR FileName );
  360. ]
  361. };
  362.  
  363.  
  364. class Worksheets //////
  365. {
  366. [properties:
  367.     [propget, id(1), helpstring("property Application")] 
  368.     IApplication Application( );
  369.     [propget, id(2), helpstring("property Count")] 
  370.     long  Count();
  371.     [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum"), restricted] 
  372.     IUnknown _NewEnum();
  373.     [propget, id(DISPID_VALUE), helpstring("property Item")] 
  374.     Worksheet Item( VARIANT Index);
  375. ]
  376. };
  377.  
  378.  
  379. class Worksheet //////
  380. {
  381. [properties:
  382.     [propget, id(1), helpstring("property Name")] 
  383.     BSTR  Name();
  384.     [propput, id(1), helpstring("property Name")] 
  385.     HRESULT Name(  BSTR newVal);
  386.     [propget, id(2), helpstring("property Cells")] 
  387.     Range Cells();
  388.     [propget, id(3), helpstring("property Range")] 
  389.     Range Range( VARIANT range);
  390.     [propget, id(4), helpstring("property Application")] 
  391.     IApplication Application();
  392.     [propget, id(5), helpstring("property Index")] 
  393.     long  Index();
  394.     [propget, id(7), helpstring("property AutoCalculate")] 
  395.     BOOL  AutoCalculate();
  396.     [propput, id(7), helpstring("property AutoCalculate")] 
  397.     HRESULT AutoCalculate(  BOOL newVal);
  398.     [propget, id(12), helpstring("property ActiveCell")] 
  399.     Range ActiveCell();
  400.     [propget, id(13), helpstring("property LastCell")] 
  401.     Range LastCell();
  402.  
  403. ]
  404. [methods:
  405.     [id(6), helpstring("method Calculate")] 
  406.     HRESULT Calculate();
  407.     [id(8), helpstring("method Delete")] 
  408.     HRESULT Delete();
  409.     [id(9), helpstring("method Activate")] 
  410.     HRESULT Activate();
  411.     [id(11), helpstring("method PrintOut")] 
  412.     HRESULT PrintOut(VARIANT StartPage, VARIANT EndPage, VARIANT Copies, VARIANT PrintToFile, VARIANT Collate);
  413. ]
  414. };
  415.  
  416.  
  417. class Range //////
  418. {
  419. [properties:
  420.     [propget, id(1), helpstring("property Formula")] 
  421.     VARIANT  Formula();
  422.     [propput, id(1), helpstring("property Formula")] 
  423.     HRESULT Formula(  VARIANT newVal);
  424.     [propget, id(2), helpstring("property Font")] 
  425.     Font Font();
  426.     [propput, id(2), helpstring("property Font")] 
  427.     HRESULT Font(  Font* newVal);
  428.     [propget, id(3), helpstring("property Application")] 
  429.     IApplication Application();
  430.     [propget, id(4), helpstring("property Cells")] 
  431.     Range Cells();
  432.     [propget, id(5), helpstring("property Range")] 
  433.     Range Range( VARIANT range);
  434.     [propget, id(6), helpstring("property Value")] 
  435.     VARIANT  Value();
  436.     [propput, id(6), helpstring("property Value")] 
  437.     HRESULT Value(  VARIANT newVal);
  438.     [propget, id(7), helpstring("property Worksheet")] 
  439.     Worksheet Worksheet();
  440.     [propget, id(8), helpstring("property NumberFormat")] 
  441.     NumberFormat NumberFormat();
  442.     [propput, id(8), helpstring("property NumberFormat")] 
  443.     HRESULT NumberFormat(  NumberFormat* newVal);
  444.     [propget, id(9), helpstring("property HorizontalAlignment")] 
  445.     ABHorizontalAlignment  HorizontalAlignment();
  446.     [propput, id(9), helpstring("property HorizontalAlignment")] 
  447.     HRESULT HorizontalAlignment(  ABHorizontalAlignment newVal);
  448.     [propget, id(10), helpstring("property VerticalAlignment")] 
  449.     ABVerticalAlignment  VerticalAlignment();
  450.     [propput, id(10), helpstring("property VerticalAlignment")] 
  451.     HRESULT VerticalAlignment(  ABVerticalAlignment newVal);
  452.     [propget, id(11), helpstring("property WrapText")] 
  453.     BOOL  WrapText();
  454.     [propput, id(11), helpstring("property WrapText")] 
  455.     HRESULT WrapText(  BOOL newVal);
  456.     [propget, id(12), helpstring("property FormulaHidden")] 
  457.     BOOL  FormulaHidden();
  458.     [propput, id(12), helpstring("property FormulaHidden")] 
  459.     HRESULT FormulaHidden(  BOOL newVal);
  460.     [propget, id(13), helpstring("property Locked")] 
  461.     BOOL  Locked();
  462.     [propput, id(13), helpstring("property Locked")] 
  463.     HRESULT Locked(  BOOL newVal);
  464.     [propget, id(14), helpstring("property ErrorHidden")] 
  465.     BOOL  ErrorHidden();
  466.     [propput, id(14), helpstring("property ErrorHidden")] 
  467.     HRESULT ErrorHidden(  BOOL newVal);
  468.     [propget, id(15), helpstring("property ZeroHidden")] 
  469.     BOOL  ZeroHidden();
  470.     [propput, id(15), helpstring("property ZeroHidden")] 
  471.     HRESULT ZeroHidden(  BOOL newVal);
  472.     [propget, id(32), helpstring("property Address")] 
  473.     BSTR Address();
  474.     [propget, id(33), helpstring("property Row")] 
  475.     long Row();
  476.     [propget, id(34), helpstring("property Column")] 
  477.     long Column();
  478.  
  479. ]
  480. [methods:
  481.     [id(16), helpstring("method Activate")] 
  482.     HRESULT Activate();
  483.     [id(17), helpstring("method Select")] 
  484.     HRESULT Select();
  485.     [id(18), helpstring("method Copy")] 
  486.     HRESULT Copy( VARIANT Destination);
  487.     [id(19), helpstring("method Calculate")] 
  488.     HRESULT Calculate();
  489.     [id(20), helpstring("method Paste")] 
  490.     HRESULT Paste();
  491.     [id(21), helpstring("method Cut")] 
  492.     HRESULT Cut( VARIANT Destination);
  493.     [id(22), helpstring("method Clear")] 
  494.     HRESULT Clear();
  495.     [id(23), helpstring("method ClearContents")] 
  496.     HRESULT ClearContents();
  497.     [id(24), helpstring("method ClearFormats")] 
  498.     HRESULT ClearFormats();
  499.     [id(25), helpstring("method Delete")] 
  500.     HRESULT Delete( VARIANT Shift);
  501.     [id(27), helpstring("method Insert")] 
  502.     HRESULT Insert( VARIANT Shift);
  503.     [id(29), helpstring("method ClearOutline")] 
  504.     HRESULT ClearOutline();
  505. ]
  506. [properties:
  507.     [propget, id(26), helpstring("property Color")] 
  508.     ABColor  Color();
  509.     [propput, id(26), helpstring("property Color")] 
  510.     HRESULT Color(  ABColor newVal);
  511.     [propget, id(28), helpstring("property Borders")] 
  512.     Borders Borders();
  513.     [propget, id(DISPID_VALUE), helpstring("property Item")] 
  514.     Range Item(VARIANT RowIndex,  VARIANT ColIndex);
  515. ]
  516. };
  517.  
  518.  
  519. class Font //////
  520. {
  521. [properties:
  522.     [propget, id(1), helpstring("property Bold")] 
  523.     BOOL  Bold();
  524.     [propput, id(1), helpstring("property Bold")] 
  525.     HRESULT Bold(  BOOL newVal);
  526.     [propget, id(2), helpstring("property Italic")] 
  527.     BOOL  Italic();
  528.     [propput, id(2), helpstring("property Italic")] 
  529.     HRESULT Italic(  BOOL newVal);
  530.     [propget, id(3), helpstring("property Underline")] 
  531.     BOOL  Underline();
  532.     [propput, id(3), helpstring("property Underline")] 
  533.     HRESULT Underline(  BOOL newVal);
  534.     [propget, id(4), helpstring("property Strikeout")] 
  535.     BOOL  Strikeout();
  536.     [propput, id(4), helpstring("property Strikeout")] 
  537.     HRESULT Strikeout(  BOOL newVal);
  538.     [propget, id(5), helpstring("property Size")] 
  539.     long  Size();
  540.     [propput, id(5), helpstring("property Size")] 
  541.     HRESULT Size(  long newVal);
  542.     [propget, id(6), helpstring("property Name")] 
  543.     BSTR  Name();
  544.     [propput, id(6), helpstring("property Name")] 
  545.     HRESULT Name(  BSTR newVal);
  546.     [propget, id(7), helpstring("property Color")] 
  547.     ABColor  Color();
  548.     [propput, id(7), helpstring("property Color")] 
  549.     HRESULT Color(  ABColor newVal);
  550. ]
  551. };
  552.  
  553.  
  554. class NumberFormat //////
  555. {
  556. [properties:
  557.     [propget, id(1), helpstring("property Type")] 
  558.     ABNumberFormatType  Type();
  559.     [propput, id(1), helpstring("property Type")] 
  560.     HRESULT Type(  ABNumberFormatType newVal);
  561.     [propget, id(2), helpstring("property Precision")] 
  562.     short  Precision();
  563.     [propput, id(2), helpstring("property Precision")] 
  564.     HRESULT Precision(  short newVal);
  565.     [propget, id(3), helpstring("property Commas")] 
  566.     BOOL  Commas();
  567.     [propput, id(3), helpstring("property Commas")] 
  568.     HRESULT Commas(  BOOL newVal);
  569.     [propget, id(4), helpstring("property Brackets")] 
  570.     BOOL  Brackets();
  571.     [propget, id(7), helpstring("property Fraction")] 
  572.     ABFractionType  Fraction();
  573.     [propput, id(7), helpstring("property Fraction")] 
  574.     HRESULT Fraction(  ABFractionType newVal);
  575.     [propget, id(8), helpstring("property Seconds")] 
  576.     BOOL  Seconds();
  577.     [propput, id(8), helpstring("property Seconds")] 
  578.     HRESULT Seconds(  BOOL newVal);
  579.     [propget, id(9), helpstring("property TimeAM")] 
  580.     BOOL  TimeAM();
  581.     [propput, id(9), helpstring("property TimeAM")] 
  582.     HRESULT TimeAM(  BOOL newVal);
  583.     [propget, id(10), helpstring("property LeadTrailString")] 
  584.     BSTR  LeadTrailString();
  585.     [propput, id(10), helpstring("property LeadTrailString")] 
  586.     HRESULT LeadTrailString(  BSTR newVal);
  587.     [propput, id(4), helpstring("property Brackets")] 
  588.     HRESULT Brackets(  BOOL newVal);
  589.     [propget, id(5), helpstring("property Red")] 
  590.     BOOL  Red();
  591.     [propput, id(5), helpstring("property Red")] 
  592.     HRESULT Red(  BOOL newVal);
  593.     [propget, id(6), helpstring("property LeadTrail")] 
  594.     ABLeadTrailType  LeadTrail();
  595.     [propput, id(6), helpstring("property LeadTrail")] 
  596.     HRESULT LeadTrail(  ABLeadTrailType newVal);
  597.     [propget, id(11), helpstring("property DateSeparator")] 
  598.     BSTR  DateSeparator();
  599.     [propput, id(11), helpstring("property DateSeparator")] 
  600.     HRESULT DateSeparator(  BSTR newVal);
  601.     [propget, id(12), helpstring("property Time")] 
  602.     BOOL  Time();
  603.     [propput, id(12), helpstring("property Time")] 
  604.     HRESULT Time(  BOOL newVal);
  605.     [propget, id(13), helpstring("property DateMonth")] 
  606.     ABDateMonthType  DateMonth();
  607.     [propput, id(13), helpstring("property DateMonth")] 
  608.     HRESULT DateMonth(  ABDateMonthType newVal);
  609.     [propget, id(14), helpstring("property DateYear")] 
  610.     ABDateYearType  DateYear();
  611.     [propput, id(14), helpstring("property DateYear")] 
  612.     HRESULT DateYear(  ABDateYearType newVal);
  613.     [propget, id(15), helpstring("property DayMonthOrder")] 
  614.     ABDayMonthOrderType  DayMonthOrder();
  615.     [propput, id(15), helpstring("property DayMonthOrder")] 
  616.     HRESULT DayMonthOrder(  ABDayMonthOrderType newVal);
  617. ]
  618. };
  619.  
  620.  
  621. class Border //////
  622. {
  623. [properties:
  624.     [propget, id(1), helpstring("property LineStyle")] 
  625.     ABLineStyle  LineStyle();
  626.     [propput, id(1), helpstring("property LineStyle")] 
  627.     HRESULT LineStyle(  ABLineStyle newVal);
  628.     [propget, id(2), helpstring("property Color")] 
  629.     ABColor  Color();
  630.     [propput, id(2), helpstring("property Color")] 
  631.     HRESULT Color(  ABColor newVal);
  632. ]
  633. };
  634.  
  635.  
  636. class Borders //////
  637. {
  638. [properties:
  639.     [propget, id(1), helpstring("property LineStyle")] 
  640.     ABLineStyle  LineStyle();
  641.     [propput, id(1), helpstring("property LineStyle")] 
  642.     HRESULT LineStyle(  ABLineStyle newVal);
  643.     [propget, id(2), helpstring("property Color")] 
  644.     ABColor  Color();
  645.     [propput, id(2), helpstring("property Color")] 
  646.     HRESULT Color(  ABColor newVal);
  647.     [propget, id(DISPID_VALUE), helpstring("property Item")] 
  648.     Border Item(  ABBorderIndex BorderIndex);
  649.     [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum"), restricted] 
  650.     IUnknown _NewEnum();
  651. ]
  652. };
  653.  
  654. class Chart //////
  655. {
  656. [properties:
  657.  
  658.     [propget, id(1), helpstring("property DataRange")] 
  659.     BSTR DataRange();
  660.     [propput, id(1), helpstring("property DataRange")] 
  661.     HRESULT DataRange(BSTR newVal);
  662.     [propget, id(2), helpstring("property SeriesVertically")] 
  663.     BOOL SeriesVertically();
  664.     [propput, id(2), helpstring("property SeriesVertically")] 
  665.     HRESULT SeriesVertically(BOOL newVal);
  666.     [propget, id(3), helpstring("property FirstColumnData")] 
  667.     BOOL FirstColumnData();
  668.     [propput, id(3), helpstring("property FirstColumnData")] 
  669.     HRESULT FirstColumnData(BOOL newVal);
  670.     [propget, id(4), helpstring("property FirstRowData")] 
  671.     BOOL FirstRowData();
  672.     [propput, id(4), helpstring("property FirstRowData")] 
  673.     HRESULT FirstRowData(BOOL newVal);
  674.     [propget, id(5), helpstring("property ChartStyle")] 
  675.     ABChartStyle ChartStyle();
  676.     [propput, id(5), helpstring("property ChartStyle")] 
  677.     HRESULT ChartStyle(ABChartStyle newVal);
  678.     [propget, id(6), helpstring("property Border")] 
  679.     ABChartBorder Border();
  680.     [propput, id(6), helpstring("property Border")] 
  681.     HRESULT Border(ABChartBorder newVal);
  682.     [propget, id(7), helpstring("property Shadow")] 
  683.     ABChartShadow Shadow();
  684.     [propput, id(7), helpstring("property Shadow")] 
  685.     HRESULT Shadow(ABChartShadow newVal);
  686.     [propget, id(8), helpstring("property AxisType")] 
  687.     ABChartAxisType AxisType();
  688.     [propput, id(8), helpstring("property AxisType")] 
  689.     HRESULT AxisType(ABChartAxisType newVal);
  690.     [propget, id(9), helpstring("property Font")] 
  691.     Font Font();
  692.     [propput, id(9), helpstring("property Font")] 
  693.     HRESULT Font(Font* newVal);
  694.     [propget, id(10), helpstring("property FillStyle")] 
  695.     ChartFillStyle *FillStyle();
  696.     [propput, id(10), helpstring("property FillStyle")] 
  697.     HRESULT FillStyle(ChartFillStyle newVal);
  698.     [propget, id(11), helpstring("property Titles")] 
  699.     ChartTitles Titles();
  700.     [propget, id(12), helpstring("property Legends")] 
  701.     ChartLegends Legends();
  702. ]
  703. [methods:
  704.     [id(13), helpstring("method Update")] 
  705.     HRESULT Update();
  706. ]
  707. };
  708.  
  709. class ChartFillStyle //////
  710. {
  711. [properties:
  712.     [propget, id(1), helpstring("property Type")] 
  713.     ABFillStyleType Type();
  714.     [propput, id(1), helpstring("property Type")] 
  715.     HRESULT Type(ABFillStyleType newVal);
  716.     [propget, id(2), helpstring("property Angle")] 
  717.     long Angle();
  718.     [propput, id(2), helpstring("property Angle")] 
  719.     HRESULT Angle(long newVal);
  720.     [propget, id(3), helpstring("property StartColor")] 
  721.     ABColor StartColor();
  722.     [propput, id(3), helpstring("property StartColor")] 
  723.     HRESULT StartColor(ABColor newVal);
  724.     [propget, id(4), helpstring("property EndColor")] 
  725.     ABColor EndColor();
  726.     [propput, id(4), helpstring("property EndColor")] 
  727.     HRESULT EndColor(ABColor newVal);
  728.     [propget, id(5), helpstring("property ImageFileName")] 
  729.     BSTR ImageFileName();
  730.     [propput, id(5), helpstring("property ImageFileName")] 
  731.     HRESULT ImageFileName(BSTR newVal);
  732.     [propget, id(6), helpstring("property StretchImage")] 
  733.     BOOL StretchImage();
  734.     [propput, id(6), helpstring("property StretchImage")] 
  735.     HRESULT StretchImage(BOOL newVal);
  736. ]
  737. };
  738.  
  739.  
  740. class ChartTitle //////
  741. {
  742. [properties:
  743.     [propget, id(1), helpstring("property Enabled")] 
  744.     BOOL Enabled();
  745.     [propput, id(1), helpstring("property Enabled")] 
  746.     HRESULT Enabled(BOOL newVal);
  747.     [propget, id(2), helpstring("property Text")] 
  748.     BSTR Text();
  749.     [propput, id(2), helpstring("property Text")] 
  750.     HRESULT Text(BSTR newVal);
  751.     [propget, id(3), helpstring("property Border")] 
  752.     ABChartBorder Border();
  753.     [propput, id(3), helpstring("property Border")] 
  754.     HRESULT Border(ABChartBorder newVal);
  755.     [propget, id(4), helpstring("property Shadow")] 
  756.     ABChartShadow Shadow();
  757.     [propput, id(4), helpstring("property Shadow")] 
  758.     HRESULT Shadow(ABChartShadow newVal);
  759.     [propget, id(5), helpstring("property FillStyle")] 
  760.     ChartFillStyle FillStyle();
  761.     [propput, id(5), helpstring("property FillStyle")] 
  762.     HRESULT FillStyle(ChartFillStyle* newVal);
  763.     [propget, id(6), helpstring("property Font")] 
  764.     Font Font();
  765.     [propput, id(6), helpstring("property Font")] 
  766.     HRESULT Font(Font* newVal);
  767. ]
  768. };
  769.  
  770. class ChartLegend //////
  771. {
  772. [properties:
  773.     [propget, id(1), helpstring("property Border")] 
  774.     ABChartBorder Border();
  775.     [propput, id(1), helpstring("property Border")] 
  776.     HRESULT Border(ABChartBorder newVal);
  777.     [propget, id(2), helpstring("property Shadow")] 
  778.     ABChartShadow Shadow();
  779.     [propput, id(2), helpstring("property Shadow")] 
  780.     HRESULT Shadow(ABChartShadow newVal);
  781.     [propget, id(3), helpstring("property FillStyle")] 
  782.     ChartFillStyle FillStyle();
  783.     [propput, id(3), helpstring("property FillStyle")] 
  784.     HRESULT FillStyle(ChartFillStyle* newVal);
  785.     [propget, id(4), helpstring("property Font")] 
  786.     Font Font();
  787.     [propput, id(4), helpstring("property Font")] 
  788.     HRESULT Font(Font* newVal);
  789.     [propget, id(5), helpstring("property Enabled")] 
  790.     BOOL Enabled();
  791.     [propput, id(5), helpstring("property Enabled")] 
  792.     HRESULT Enabled(BOOL newVal);
  793. ]
  794. };
  795.  
  796.  
  797. class ChartTitles //////
  798. {
  799. [properties:
  800.     [propget, id(DISPID_VALUE), helpstring("property Item")] 
  801.     ChartTitle Item(ABChartTitleIndex TitleIndex);
  802.     [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] 
  803.     IUnknown _NewEnum();
  804. ]
  805. };
  806.  
  807. class ChartLegends  //////
  808. {
  809. [properties:
  810.     [propget, id(DISPID_VALUE), helpstring("property Item")] 
  811.     ChartLegend Item(ABChartLegendIndex LegendIndex);
  812.     [propget, id(DISPID_NEWENUM), helpstring("property _NewEnum")] 
  813.     IUnknown _NewEnum();
  814. ]
  815. };
  816.  
  817.